{include file="public/head"}
<title>Home</title>
<link rel="stylesheet" href="__STATIC__/home/css/woocommerce/woocommerce-layout.css" />
<link rel="stylesheet" href="__STATIC__/home/css/woocommerce/woocommerce-smallscreen.css" />
</head>
<body class="page woocommerce-account woocommerce-page">
    <div class="body-wrapper theme-clearfix">
    {include file="public/nav"}
        <div class="listings-title">
            <div class="container">
                <div class="wrap-title">
                    <h1>个人中心</h1>
                    <div class="bread">
                        <div class="breadcrumbs theme-clearfix">
                            <div class="container">
                                <ul class="breadcrumb">
                                    <li>
                                        <a href="/">首页</a>
                                        <span class="go-page"></span>
                                    </li>

                                    <li class="active">
                                        <span>我的账号</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div id="contents" role="main" class="main-page  col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="post-6 page type-page status-publish hentry">
                        <div class="entry">
                            <div class="entry-content">
                                <header>
                                    <h2 class="entry-title">个人中心</h2>
                                </header>

                                <div class="entry-content">
                                    <div class="woocommerce">
                                        <nav class="woocommerce-MyAccount-navigation">
                                            <ul>
                                                <li>
                                                    <a href="{:url('account/index')}">账号首页</a>
                                                </li>

                                                <li class="is-active">
                                                    <a href="{:url('account/edit')}">修改资料</a>
                                                </li>

                                                <li>
                                                    <a href="{:url('account/orders')}">我的订单</a>
                                                </li>

                                                <li>
                                                    <a href="{:url('account/wikis')}">我的问答</a>
                                                </li>

                                                <li>
                                                    <a href="{:url('bis/index')}">入驻中心</a>
                                                </li>
                                            </ul>
                                        </nav>

                                        <div class="woocommerce-MyAccount-content">
                                            <form class="edit-account" action="{:url('account/edit')}" method="post">
                                                <p class="form-row form-row-first">
                                                    <label>
                                                        用户名
                                                        <span class="required">*</span>
                                                    </label>
                                                    <input type="text" class="input-text" name="" id="username" value="{$user.username}" disabled>
                                                </p>

                                                <p class="form-row form-row-last">
                                                    <label>
                                                        电子邮箱
                                                        <span class="required">*</span>
                                                    </label>
                                                    <input type="text" class="input-text" name="" id="user_email" value="{$user.user_email}" disabled>
                                                </p>

                                                <div class="clear"></div>

                                                <fieldset>
                                                <legend>详细资料</legend>
                                                <p class="form-row form-row-first">
                                                    <label>
                                                        真实姓名
                                                        <span class="required">*</span>
                                                    </label>

                                                    <input type="text" class="input-text" name="realname" id="realname" value="{$user.realname}">
                                                </p>

                                                <p class="form-row form-row-last">
                                                    <label>
                                                        性别
                                                        <span class="required">*</span>
                                                    </label>
                                                    <input style="height: 25px;box-sizing: border-box;width: 10%;margin: 0;" {if condition="$user.usersex == 1"}checked{/if} name="usersex" type="radio" value="1">男
                                                    <input style="height: 25px;box-sizing: border-box;width: 10%;margin: 0;" {if condition="$user.usersex == 2"}checked{/if} name="usersex" type="radio" value="2">女
                                                </p>

                                                <div class="clear"></div>

                                                <p class="form-row form-row-first">
                                                    <label>
                                                        手机号码
                                                        <span class="required">*</span>
                                                    </label>
                                                    <input type="text" class="input-text" name="user_phone" id="user_phone" value="{$user.user_phone}">
                                                </p>

                                                <p class="form-row form-row-last">
                                                    <label>
                                                        QQ号码
                                                    </label>
                                                    <input type="text" class="input-text" name="user_qq" id="user_qq" value="{$user.user_qq}">
                                                </p>
                                                </fieldset>

                                                <div class="clear"></div>

                                                <fieldset>
                                                    <legend>更改密码</legend>
                                                    <p class="form-row form-row-wide">
                                                        <label for="password_current">原密码（不修改密码则留空）</label>
                                                        <input type="password" class="input-text" name="password_current" id="password_current">
                                                    </p>

                                                    <p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
                                                        <label for="password_1">新密码</label>
                                                        <input type="password" class="input-text" name="password" id="password_1">
                                                    </p>

                                                    <p class="form-row form-row-wide">
                                                        <label for="password_2">确认新密码</label>
                                                        <input type="password" class="input-text" name="repassword" id="password_2">
                                                    </p>
                                                </fieldset>

                                                <div class="clear"></div>
                                                <p>
                                                    <input type="submit" class="button" name="save_account_details" value="保存设置">
                                                </p>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {include file="public/footer"}